import http from "@/utils/http";

/** 权限角色 */
export class RoleApi {
   /** 添加角色 */
   static readonly Create = (params: Role.Create) => http.post("/api/role/create", params);

   /** 删除角色 */
   static readonly Delect = (params: Role.Delete) => http.post("/api/role/delete", params);

   /** 修改角色 */
   static readonly Update = (params: Role.Update) => http.post("/api/role/update", params);

   /** 查询 */
   static readonly Search = (params?: Role.Search) => http.get<Role.Table[]>("/api/role/search", params);
}
